package require SOAP 


#root content, there is no parent content
SOAP::create addContent \
	-uri "org.jma.app.ewisdom.services.SrvContentManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "CID" "string" "comment" "string" "parent" "string" "pos" "integer"}
	
	

SOAP::create removeContent \
	-uri "org.jma.app.ewisdom.services.SrvContentManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "CID" "string"}
	
SOAP::create getContent \
	-uri "org.jma.app.ewisdom.services.SrvContentManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "CID" "string"}		

SOAP::create getIndexes \
	-uri "org.jma.app.ewisdom.services.SrvContentManager" \
	-proxy "http://localhost:7042/ewisdom" 
	
addContent -headers {SSAuth-userName root SSAuth-password root SSauth-initiateSession true SSauth-timeout 120000000}  MyIndex "It is a probe" null 0


#maintain the sessionuserName


	
set session [lindex [SOAP::getHeaders addContent] 1]

addContent -header $session subIndex "otro mas" MyIndex 0

removeContent -header $session MyIndex


getContent -headers $session MyIndex
getContent -headers $session MyIndex2

